﻿using mozhi.smarterp.Finance.Basedatas;
using mozhi.smarterp.Finance.Enums;
using System;
using System.Collections.Generic;
using System.Text;
using Volo.Abp.Application.Dtos;

namespace mozhi.smarterp.Finance.Finances
{
    public class JournalUpdateDto : EntityDto<Guid>
    {
        public DateTime Date { get; set; }

        public string NumberPrefix { set; get; }

        public string Number { set; get; }

        public string FullNumber { set; get; }

        public JournalSourceType SourceType { set; get; }

        public List<JournalItemUpdateDto> Items { set; get; }
    }

    public class JournalItemUpdateDto : EntityDto<Guid?>
    {
        public string Summary { set; get; }

        public Guid AccountId { set; get; }

        public Guid? CurrencyId { set; get; }

        public decimal? ExchangeRate { set; get; }

        public decimal Amount { set; get; }

        public decimal AmountFr { set; get; }

        public decimal? DebitAmount { set; get; }

        public decimal? CreditAmount { set; get; }

        public AccountDirectionType Direction { set; get; }

        public int Index { set; get; }

        public List<DimensionGroupValueItemDto> DimensionGroupValueItems { set; get; }
    }
}
